package anthology.daily_question._24_12;

import java.util.ArrayList;
import java.util.List;

//https://leetcode.cn/problems/find-indices-of-stable-mountains/description/?envType=daily-question&envId=2024-12-19
public class _3285找到稳定山的下标 {
    class Solution {
        public List<Integer> stableMountains(int[] height, int threshold) {
            List<Integer> ans = new ArrayList<>();
            for (int i = 0; i < height.length - 1; i++) {
                if (height[i] > threshold) {
                    ans.add(i + 1);
                }
            }
            return ans;
        }
    }
}
